<ul class="nav nav-tabs" role="tablist" id="myTab">
  <li class="<%= 'active' if action_name == 'to_me' %>">
  	<%= link_to  "共享给我",to_me_shares_path  %>
  </li>
  <li class="<%= 'active' if action_name == 'by_me' %>">
  	<%= link_to  "我共享的",by_me_shares_path  %>
  </li>
  <%if current_user.is_sys_admin %>
  <li class="<%= 'active' if action_name == 'index' %>">
    <%= link_to  "所有共享",shares_path  %>
  </li>
  <%end%>
</ul>
<div style="margin-top:8px;"></div>